package dataStructure;

public class BinaryTree<T> {

    BinaryTreeNode<T> root;
    //定义为最后一个,就是插入数据的父节点
    BinaryTreeNode<T> lastNode;

    public void add(T data) {
        if (root == null) {
            root = new BinaryTreeNode<>(data);
            lastNode = root;
        } else {
//            while ()
        }
    }
}
